package genes;

import java.io.IOException;
import java.util.Iterator;
import java.util.List;

import strains.StrainPicker;
import junit.framework.TestCase;

public class GeneSequenceTest extends TestCase {

	public void testOne() throws IOException{
		StrainPicker sp =new StrainPicker();
		String s1=sp.getSequence(889);
		System.out.println(s1);
		GeneSequence gs= new GeneSequence(s1);
		System.out.println(gs.geneSequence);
		System.out.println(this.printList(gs.getAaSequence()));
		
	}
	
	private String printList(List<Codon> list){
		Iterator<Codon> iter= list.iterator();
		String r="";
		while(iter.hasNext()){
			r=r+iter.next();
		//	System.out.println(r);
		}
	//	System.out.println(r);
		return r;
	}
}
